/// buildingName : "1号楼"
/// statusName : "使用中"
/// maintenancePersonnel : "王芳"
/// nextMaintenanceDate : null
/// serialNumber : "002"
/// name : "消防栓"
/// model : "XSD"
/// buildingId : 17
/// location : "楼梯旁"
/// maintenancePersonnelId : 10256
/// maintenancePersonnelPhone : "18900000000"
/// maintenanceUnit : "杭州消防"
/// maintenanceType : 100122
/// enableDate : "2022-03-18 00:00:00"
/// qrcode : "https://qr.yytong.com/ZUaowlGkkcoXchqJduLt6w=="
/// maintenanceCycleType : 1
/// maintenanceCycle : 2
/// maintenanceDate : "2022-03-18 18:55:39"
/// remark : "备注"
/// status : 0
/// deleteStatus : 0
/// id : 3
/// createdBy : "5"
/// createdDate : "2022-03-18 15:14:23"
/// updatedBy : "5"
/// updatedDate : "2022-03-18 18:55:39"

class DeviceRepairListData {
  DeviceRepairListData({
      String? buildingName,
      String? statusName,
      String? maintenancePersonnel,
      dynamic nextMaintenanceDate, 
      String? serialNumber,
      String? name,
      String? model,
      int? buildingId,
      String? location,
      int? maintenancePersonnelId,
      String? maintenancePersonnelPhone,
      String? maintenanceUnit,
      int? maintenanceType,
      String? enableDate,
      String? qrcode,
      int? maintenanceCycleType,
      int? maintenanceCycle,
      String? maintenanceDate,
      String? remark,
      int? status,
      int? deleteStatus,
      int? id,
      String? createdBy,
      String? createdDate,
      String? updatedBy,
      String? updatedDate,}){
    _buildingName = buildingName;
    _statusName = statusName;
    _maintenancePersonnel = maintenancePersonnel;
    _nextMaintenanceDate = nextMaintenanceDate;
    _serialNumber = serialNumber;
    _name = name;
    _model = model;
    _buildingId = buildingId;
    _location = location;
    _maintenancePersonnelId = maintenancePersonnelId;
    _maintenancePersonnelPhone = maintenancePersonnelPhone;
    _maintenanceUnit = maintenanceUnit;
    _maintenanceType = maintenanceType;
    _enableDate = enableDate;
    _qrcode = qrcode;
    _maintenanceCycleType = maintenanceCycleType;
    _maintenanceCycle = maintenanceCycle;
    _maintenanceDate = maintenanceDate;
    _remark = remark;
    _status = status;
    _deleteStatus = deleteStatus;
    _id = id;
    _createdBy = createdBy;
    _createdDate = createdDate;
    _updatedBy = updatedBy;
    _updatedDate = updatedDate;
}

  DeviceRepairListData.fromJson(dynamic json) {
    _buildingName = json['buildingName'];
    _statusName = json['statusName'];
    _maintenancePersonnel = json['maintenancePersonnel'];
    _nextMaintenanceDate = json['nextMaintenanceDate'];
    _serialNumber = json['serialNumber'];
    _name = json['name'];
    _model = json['model'];
    _buildingId = json['buildingId'];
    _location = json['location'];
    _maintenancePersonnelId = json['maintenancePersonnelId'];
    _maintenancePersonnelPhone = json['maintenancePersonnelPhone'];
    _maintenanceUnit = json['maintenanceUnit'];
    _maintenanceType = json['maintenanceType'];
    _enableDate = json['enableDate'];
    _qrcode = json['qrcode'];
    _maintenanceCycleType = json['maintenanceCycleType'];
    _maintenanceCycle = json['maintenanceCycle'];
    _maintenanceDate = json['maintenanceDate'];
    _remark = json['remark'];
    _status = json['status'];
    _deleteStatus = json['deleteStatus'];
    _id = json['id'];
    _createdBy = json['createdBy'];
    _createdDate = json['createdDate'];
    _updatedBy = json['updatedBy'];
    _updatedDate = json['updatedDate'];
  }
  String? _buildingName;
  String? _statusName;
  String? _maintenancePersonnel;
  dynamic _nextMaintenanceDate;
  String? _serialNumber;
  String? _name;
  String? _model;
  int? _buildingId;
  String? _location;
  int? _maintenancePersonnelId;
  String? _maintenancePersonnelPhone;
  String? _maintenanceUnit;
  int? _maintenanceType;
  String? _enableDate;
  String? _qrcode;
  int? _maintenanceCycleType;
  int? _maintenanceCycle;
  String? _maintenanceDate;
  String? _remark;
  int? _status;
  int? _deleteStatus;
  int? _id;
  String? _createdBy;
  String? _createdDate;
  String? _updatedBy;
  String? _updatedDate;

  String? get buildingName => _buildingName;
  String? get statusName => _statusName;
  String? get maintenancePersonnel => _maintenancePersonnel;
  String? get nextMaintenanceDate => _nextMaintenanceDate;
  String? get serialNumber => _serialNumber;
  String? get name => _name;
  String? get model => _model;
  int? get buildingId => _buildingId;
  String? get location => _location;
  int? get maintenancePersonnelId => _maintenancePersonnelId;
  String? get maintenancePersonnelPhone => _maintenancePersonnelPhone;
  String? get maintenanceUnit => _maintenanceUnit;
  int? get maintenanceType => _maintenanceType;
  String? get enableDate => _enableDate;
  String? get qrcode => _qrcode;
  int? get maintenanceCycleType => _maintenanceCycleType;
  int? get maintenanceCycle => _maintenanceCycle;
  String? get maintenanceDate => _maintenanceDate;
  String? get remark => _remark;
  int? get status => _status;
  int? get deleteStatus => _deleteStatus;
  int? get id => _id;
  String? get createdBy => _createdBy;
  String? get createdDate => _createdDate;
  String? get updatedBy => _updatedBy;
  String? get updatedDate => _updatedDate;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['buildingName'] = _buildingName;
    map['statusName'] = _statusName;
    map['maintenancePersonnel'] = _maintenancePersonnel;
    map['nextMaintenanceDate'] = _nextMaintenanceDate;
    map['serialNumber'] = _serialNumber;
    map['name'] = _name;
    map['model'] = _model;
    map['buildingId'] = _buildingId;
    map['location'] = _location;
    map['maintenancePersonnelId'] = _maintenancePersonnelId;
    map['maintenancePersonnelPhone'] = _maintenancePersonnelPhone;
    map['maintenanceUnit'] = _maintenanceUnit;
    map['maintenanceType'] = _maintenanceType;
    map['enableDate'] = _enableDate;
    map['qrcode'] = _qrcode;
    map['maintenanceCycleType'] = _maintenanceCycleType;
    map['maintenanceCycle'] = _maintenanceCycle;
    map['maintenanceDate'] = _maintenanceDate;
    map['remark'] = _remark;
    map['status'] = _status;
    map['deleteStatus'] = _deleteStatus;
    map['id'] = _id;
    map['createdBy'] = _createdBy;
    map['createdDate'] = _createdDate;
    map['updatedBy'] = _updatedBy;
    map['updatedDate'] = _updatedDate;
    return map;
  }

}